package com.itheima.IoTest_1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class text_3 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("IO\\a.txt");
        FileOutputStream fos=new FileOutputStream("IO\\b.txt");
        byte byt[]=new byte[1024];
        int len;//本次读到的有效字节个数
        while ((len=fis.read())!=-1){
                fos.write(byt,0,len);
        }
        fos.close();
        fis.close();
    }
}
